package com.autumn.oauth2.zero.domain.entities;

import javax.persistence.Column;

import com.autumn.domain.entities.AbstractDefaultEntity;
import com.autumn.mybatis.mapper.annotation.ColumnOrder;
import com.autumn.mybatis.mapper.annotation.Index;

/**
 * 授权抽象
 * 
 * @author 老码农 2018-04-09 23:15:02
 */
public abstract class AbstractAuthority extends AbstractDefaultEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5052866889160988870L;

	@ColumnOrder(10)
	@Column(name = "resources_id", nullable = false)
	@Index
	private Long resourcesId;

	/**
	 * 获取资源id
	 * 
	 * @return
	 */
	public Long getResourcesId() {
		return resourcesId;
	}

	/**
	 * 设置资源Id
	 * 
	 * @param resourcesId
	 *            资源Id
	 */
	public void setResourcesId(Long resourcesId) {
		this.resourcesId = resourcesId;
	}

}
